/*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package main

import (
	"deploy-tools/postfile/cmd"
)

var accessToken = "02eb59d8802f1288783c26e6f890fd6c8e511b12edd150a8dc080e9c4d100f86"

func main() {
	cmd.Execute()
	// test for DingTalk,
	//hook := webhook.NewWebHook("")
	//err := hook.SendLinkMsg("drone -> hello world", "drone, halo,word.", "", "http://192.168.100.132:81/")
	//if err != nil {
	//	os.Exit(1)
	//}
	////
	//ding := dingtalk.InitDingTalk([]string{accessToken}, "drone")
	//msg := []string{
	//	"drone ->",
	//	"---",
	//	"- Repo: ",
	//	"- Branch: ",
	//	"- Project: ",
	//	"- File: ",
	//	"- Url: ",
	//	"---",
	//	"> ding notify",
	//}
	//err := ding.SendMarkDownMessageBySlice("halo word", msg)
	//if err != nil {
	//	os.Exit(1)
	//}
}
